package com.infore.siteManagement.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.infore.siteManagement.entity.Basinn;
/**
 * 流域仓库
 * @author 刘乐法
 *
 *
 */
@Repository
public interface IBasinnRespository extends JpaRepository<Basinn, String>,JpaSpecificationExecutor<Basinn>{

	@Modifying
	@Transactional
	int deleteByBasinnIdIn(List<String> ids);
	
	List<Basinn> findAllByBasinnIdIn(List<String> ids);
	
	List<Basinn> findAllByBasinnCodeIn(List<String> Codes);
}
